Xbasic

RESOLVE_MIME_TYPE Function

This function is deprecated and will not be available in future versions. Use Context.ResolveMimeType() instead.

Syntax

Mime_Type as C = resolve_mime_type(C file_extension )

Arguments

Mime_Type

A formatted definition of a mime type suitable for use in a page header or response header. The response is "text/html" if the File_Type cannot be identified.

file_extension

A Windows file type in the format: ". XYZ " . Character

Description

The RESOLVE_MIME_TYPE() function returns a properly formatted and legal mime type suitable for use in a page header or response header.

See Also